<html>
<body>
<p>Reports mapping a collection to Boolean values and using <code>contains</code> on it.</p>

<p>The quick-fix uses <code>.exists()</code> or <code>!.forall()</code> instead.</p>
<p><b>Example:</b></p>
<pre><code>
  def p(x: Int): Boolean = ???
  var seq: Seq[Int]
  seq.map(p).contains(true)
  seq.map(p).contains(false)
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  def p(x: Int): Boolean = ???
  var seq: Seq[Int]
  seq.exists(p)
  !seq.forall(p)
</code></pre>
<!-- tooltip end -->
</body>
</html>